package com.qf.news.service;

import com.github.pagehelper.PageInfo;
import com.qf.news.entity.NewsDetail;

public interface NewsDetailService {

    //根据id删除新闻信息
    void deleteById(Long id);

    //分页查询所有新闻信息
    PageInfo<NewsDetail> findAllByPage(Integer page, Integer rows);

    //根据标题分页查询新闻信息
    PageInfo<NewsDetail> findByTitleAndPage(Integer page,Integer rows,String title);

}
